package com.zs.ssh.utils;


/**
 * 后台分页
 *
 * @author: 赵圣
 * @date: 2018年9月27日下午4:13:58
 * @Version 1.0
 */
public class Pagination {
    /**
     * 当前页
     */
    private int currentPage;
    private int lineSize;//每页显示多少条
    private int totalCount; //总记录数
    private int totalPage;//总页数

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getLineSize() {
        return lineSize;
    }

    public void setLineSize(int lineSize) {
        this.lineSize = lineSize;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public Pagination(int currentPage, int lineSize) {
        super();
        this.currentPage = currentPage;
        this.lineSize = lineSize;
    }

    public Pagination() {
        super();
    }

    @Override
    public String toString() {
        return "Page [currentPage=" + currentPage + ", lineSize=" + lineSize
                + "]";
    }


}
